/*
* $Id: RenameOperation.h 2 2009-12-23 13:58:02Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _RENAME_OPERATION_H_
#define _RENAME_OPERATION_H_

#include "../Operation.h"

class CRenameOperation : public COperation
{
public:
	CRenameOperation();
	virtual ~CRenameOperation();
	struct content : public COperation::content{
		content();
		enum typeRename{
			DEFAULT = 0,
			POINT,
			FAMILY,
			HOUSING
		}s_type;
		int s_nId;
		std::tstring s_strNewName;
		virtual void Clear();
	}m_content;
public:
	virtual void UpdateValue(IDatabase* pDatabase);
};

#endif/*_RENAME_OPERATION_H_*/